#!/usr/bin/python
import sys

def Cat(filename):
  """Below session prints a single line at a time"""
  f = open(filename, 'rU')
  for line in f:
    print line,
  f.close()
 
  """Below session create a python list"""
  f = open(filename, 'r')
  Lines = f.readlines()
  print Lines
  f.close()
  print
  
  """Below session create a single string"""
  f = open(filename, 'r')
  text = f.read()
  print text,
  f.close()
  
def main():
  Cat(sys.argv[1])
	
if __name__=="__main__":
  main()